export default function define(Python: Blockly.BlockGenerators) {
  Python['init_load'] = function(block) {

    var value_name = Blockly.Python.valueToCode(block, 'path', Blockly.Python.ORDER_ATOMIC);
    // TODO: Assemble Python into code variable.
    var code = 'Coolguy.mixer_load("' +value_name+ '")\n';
    return code;
  };

  Python['mixer_play'] = function(block) {
    var code = 'Coolguy.mixer_play()' + '\n';
    return code;
  };
  
  Python['mixer_rewind'] = function(block) {
    var code = 'Coolguy.mixer_rewind()' + '\n';
    return code;
  };
  
  Python['mixer_stop'] = function(block) {
    var code = 'Coolguy.mixer_stop()' + '\n';
    return code;
  };
  
  Python['mixer_pause'] = function(block) {
    var code = 'Coolguy.mixer_pause()' + '\n';
    return code;
  };
  
  Python['mixer_unpause'] = function(block) {
    var code = 'Coolguy.mixer_unpause()'+ '\n';
    return code;
  };
  
  Python['mixer_set_volume'] = function(block) {
    var value_vol = Blockly.Python.valueToCode(block, 'vol', Blockly.Python.ORDER_ATOMIC);
    var code = 'Coolguy.mixer_set_volume(' + value_vol + ')\n';
    return code;
  };
  
  Python['mixer_get_volume'] = function (block) {
    const code = 'Coolguy.mixer_get_volume()';
    return [code, Blockly.Python.ORDER_ATOMIC];
  };
  
  Python['mixer_get_busy'] = function (block) {
    const code = 'Coolguy.mixer_get_busy()';
    return [code, Blockly.Python.ORDER_ATOMIC];
  };
}
